package org.andromeo;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class ARSQLiteOpenHelper extends SQLiteOpenHelper {

	public static final String create_msgtab_expression = "Create table MESSAGES "
			+ "( _ID INTEGER, MID NUMERIC, UID NUMERIC, PUID NUMERIC, DIRECTION INTEGER, "
			+ "SUBJECT TEXT, BODY TEXT, FLAG_SAVED BOOLEAN, FLAG_READ BOOLEAN, FLAG_PICTURES BOOLEAN, "
			+ "SENTDATE_STRING TEXT, SENTDATE DATETIME, SYNC_STATE INTEGER";

	public ARSQLiteOpenHelper(Context context, String name,
			CursorFactory factory, int version) {
		super(context, name, factory, version);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		db.execSQL(create_msgtab_expression);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
